package com.leen.user.dto;

import com.leen.common.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户账单表分页查询
 * @author zhx
 * @date 2021/5/20
 */
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户账单表分页查询")
public class YxUserBillDTO extends PageDTO implements Serializable {

    /**
     * 明细种类
     */
    @ApiModelProperty(value = "明细种类")
    private String category;

    /**
     * 明细类型
     */
    @ApiModelProperty(value = "明细类型")
    private String type;

    /**
     * （进出帐）0 = 支出 1 = 获得
     */
    @ApiModelProperty(value = "0 = 支出 1 = 获得")
    private Byte pm;

    /**
     * 账单标题
     */
    @ApiModelProperty(value = "账单标题")
    private String title;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
